<#macro buttons buttonsName buttonsAction buttonsOnclick={}>
<#if buttonsName?exists>
<table cellpadding="0" cellspacing="0">
	<tr>
		<td height="22">
			<table  width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
					<td width=5>&nbsp;</td>
				<!-- 生成按钮 -->
					<td style="cursor:hand;font-size:13px;vertical-align:middle;">
				<#assign keys = buttonsName?keys>
				<#list	keys as button>
						<#if buttonsOnclick[button]?exists>
						<#assign onclik = buttonsOnclick[button] />
						<#elseif buttonsAction[button]?exists>
						<#assign onclik = "submitForm('"+ buttonsAction[button] +"');" >
						<#else>
						<#assign onclik = "submitForm();" >
						</#if>
						&nbsp;<a href='#' onclick="${onclik}" id="${button}Button" class='button'>
								${((buttonsName[button])?if_exists)?html}
						</a>
				</#list>
					</td>
				<!-- 按钮生成结束 -->
				
					<td >&nbsp;</td>
				</tr>
			</table>
		</td>
		<td >&nbsp;</td>
	</tr>
</table>
</#if>
</#macro>